package com.ete.lib.upload.net.api

import com.ete.lib.upload.bean.HardwareEntry
import com.ete.lib.upload.net.bean.BaseResponse
import okhttp3.RequestBody
import retrofit2.Call
import retrofit2.http.*

/**
 * Author:LiXian
 * <p>
 * Desc:上报接口
 * Version:1.0
 * date 2023/2/16 11:32
 */
interface UploadService {


    /**
     * 硬件信息上报（1.1硬件上报）
     */
    @POST("http://operation.shjkkc.com/operation/device/info/upload")
    fun uploadHardwareInfo(
            @Body body: List<HardwareEntry>
    ): Call<BaseResponse<String>>


    /**
     * APP日志文件上传（1.2硬件日志文件上传）
     */
    @Multipart
    @POST("https://device-api-pt.shjkkc.com/sys/device/log/save")//正式服务器
//    @POST("http://120.79.6.11:9527/sys/device/log/save") //测试服务器
    fun uploadLogFile(
            @PartMap params: HashMap<String, RequestBody>
    ): @JvmSuppressWildcards Call<BaseResponse<Boolean>>
}